package org.jeecgframework.web.service;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.ZyWarrantyPeriodEntity;

public interface ZyWarrantyPeriodServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	public <T> void saveOrUpdateForCp(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(ZyWarrantyPeriodEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(ZyWarrantyPeriodEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(ZyWarrantyPeriodEntity t);
 	
 	/**
 	 * @author xiul
 	 * 2016-6-17 下午3:27:01
 	 * Description 上传Excel 单拿出sn 那一列 
 	 */
 	public List<String> parseExcel(HttpServletRequest req);
 	
 	/**
 	 * @author xiul
 	 * 2016-6-17 下午3:27:20
 	 * Description 比对 list中sn是否重复 
 	 * @param snList
 	 * @param begin 开始行数
 	 * @param end 结束行数
 	 * @return 重复的Sn
 	 */
 	public String checkSnRepeat(List<String> snList,int begin,int end);
}


